<div class="container">
  <h1>_make_sure_allowed()</h1>
  <p class="signature"> function _make_sure_allowed(string $scenario = 'admin panel'): string </p>
  <h2>Description</h2>
  <div class="description">
    <p>Ensures the user is allowed access for the specified scenario.</p>
  </div>
  <h2>Parameters</h2>
  <table>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Description</th>
        <th>Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>$scenario</td>
        <td>string</td>
        <td>Optional. The scenario for access control.</td>
        <td>admin panel</td>
      </tr>
    </tbody>
  </table>
  <h2>Return Value</h2>
  <table>
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>string</td>
        <td>Returns a (trongate) token or initializes the 'not allowed' procedure.</td>
      </tr>
    </tbody>
  </table>
  <h2>Example Usage #1</h2>
  <div class="example">
    <pre>$this->module('trongate_security');
$token = $this->trongate_security->_make_sure_allowed();</pre>
  </div>
  <h2>Example Usage #2</h2>
  <div class="example">
    <pre>$this->module('trongate_security');
$this->trongate_security->_make_sure_allowed('members area');</pre>
  </div>
  </div>
</div>
